package com.zmj.utils;

public class Message {
    private  String mes;
    private  int code;

    public Message(String mes, int code) {
        this.mes = mes;
        this.code = code;
    }

    public Message() {
    }

    public String getMes() {
        return mes;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"mes\":\"")
                .append(mes).append('\"');
        sb.append(",\"code\":")
                .append(code);
        sb.append('}');
        return sb.toString();
    }
}
